﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Runtime.Serialization;
namespace ModelLayer
{
   public class JobOffer
    {

       public JobOffer(string jobTitle, Company company, DateTime expired, string content, JobCategory category,
           JobStatus status, JobLength length, WorkAmount amount, WorkTime time)
       {
           JobTitle = jobTitle;
           Company = company;
           DateCreated = DateTime.Now;
           DateExpire = expired;
           Content = content;
           Category = category;
           Status = status;
           Length = length;
           Amount = amount;
           Time = time;
       }

       [DataMember]
       public int JobId { get; set; }

       [DataMember]
       public string JobTitle { get; set; }

       [DataMember]
       public Company Company { get; set; }

       [DataMember]
       public DateTime DateCreated { get; set; }

       [DataMember]
       public DateTime DateExpire { get; set; }

       [DataMember]
       public string Content { get; set; }

       [DataMember]
       public JobCategory Category { get; set; }

       [DataMember]
       public JobStatus Status { get; set; }

       [DataMember]
       public JobLength Length { get; set; }

       [DataMember]
       public WorkAmount Amount { get; set; }

       [DataMember]
       public WorkTime Time { get; set; }
    }
}
